import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/Management.vue'
import Login from '../views/Login.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/Index',
      name: 'Index',
      component: () => import('../views/Index.vue')
    },
    {
      path: '/Management',
      name: 'Management',
      component: () => import('../views/Management.vue')
    },
    {
      path: '/TheMessage',
      name: 'TheMessage',
      component: () => import('../views/TheMessage.vue')
    },
    {
      path: '/My',
      name: 'My',
      component: () => import('../views/My.vue')
    }
  ]
})

export default router
